package org.fly.service;

import org.fly.bean.Classification;
import org.fly.bean.Page;
import org.fly.bean.query.ClassificationQuery;
import org.fly.bean.warpper.ClassificationTreeWarpper;
import org.fly.bean.warpper.ClassificationWarpper;

import java.util.List;

/**
 * @author fly
 */
public interface ClassificationService {

    List<Classification> list(ClassificationQuery query);

    List<ClassificationWarpper> listWarpper(ClassificationQuery query);

    long count(ClassificationQuery query);
    void save(Classification classification);

    List<Classification> listByParentId(String parentId);

    Classification findById(String id);

    void delete(String id);

    List<ClassificationTreeWarpper> treeMapAll();

}
